package com.tuanzi.loan.api.controller;

import com.tuanzi.loan.business.service.statistics.StatHitSuccessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Simon
 * @date 2019/08/02 17:37
 */
@RestController
@RequestMapping("/stat")
public class StatHitSuccessController {

    @Autowired
    private StatHitSuccessService statHitSuccessService;

    @GetMapping("/hit-success/{time}")
    public void stat(@PathVariable("time") String time) throws Exception {
        statHitSuccessService.stat(time);
    }
}
